package com.sg.dto.integration.pbff.common;

import com.sg.common.dto.PagedDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc BffBizAppSceneRelDto
 * @使用场景
 */
@Data
public class BffBizAppSceneRelDto extends PagedDto implements Serializable {

    /**
     * 应用场景关系ID
     */
    @ApiModelProperty("应用场景关系ID")
    private String bizAppSceneRelationshipId;

    /**
     * 被赋能业务应用ID
     */
    @ApiModelProperty("被赋能业务应用ID")
    private String byBizAppId;

    /**
     * 被赋能业务场景ID
     */
    @ApiModelProperty("被赋能业务场景ID")
    private String bizSceneId;

    /**
     * 业务场景标识
     */
    @ApiModelProperty("业务场景标识")
    private String bizSceneCode;

    /**
     * 业务场景名称
     */
    @ApiModelProperty("业务场景名称")
    private String bizSceneName;

    /**
     * 业务场景描述
     */
    @ApiModelProperty("业务场景描述")
    private String bizSceneDes;

    /**
     * 赋能业务应用ID
     */
    @ApiModelProperty("赋能业务应用ID")
    private String bizAppId;

    /**
     * 业务应用标识
     */
    @ApiModelProperty("业务应用标识")
    private String bizAppCode;

    /**
     * 业务应用名称
     */
    @ApiModelProperty("业务应用名称")
    private String bizAppName;

    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    /**
     * 是否存档 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否存档")
    private String isArchive;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffBizAppSceneRelDto that = (BffBizAppSceneRelDto) o;
        return bizAppSceneRelationshipId == that.bizAppSceneRelationshipId && byBizAppId == that.byBizAppId && bizSceneId == that.bizSceneId && bizSceneCode == that.bizSceneCode && bizSceneName == that.bizSceneName && bizSceneDes == that.bizSceneDes && bizAppId == that.bizAppId && bizAppCode == that.bizAppCode && bizAppName == that.bizAppName && subjectLifeCycle == that.subjectLifeCycle && isArchive == that.isArchive;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), bizAppSceneRelationshipId, byBizAppId, bizSceneId, bizSceneCode, bizSceneName, bizSceneDes, bizAppId, bizAppCode, bizAppName, subjectLifeCycle, isArchive);
    }


}
   